package com.zjl.学习.第05章_作业控制.A_作业的启动;


import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.nio.charset.Charset;


@SpringBootApplication
@EnableBatchProcessing//开启spring batch
public class A3_接口访问 {
    public static void main(String[] args) {
        System.setProperty("spring.profiles.active","05");//  同理 --spring.profiles.active=xxx
        ConfigurableApplicationContext run = SpringApplication.run(A3_接口访问.class, args);
        System.out.println("***********启动完毕**当前编码:" + Charset.defaultCharset().name() + "****************");
        String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String s:beanDefinitionNames){
            System.out.println(s);
        }
    }
}
